<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FileContentServiceImpl
 *
 * @author krisada.thiangtham
 */
class FileContentServiceImpl {

    private $dispatcher;

    public function __construct(FileDao $dispatcher) {
        return $this->dispatcher = $dispatcher;
    }

    public function action($action) {
        return $this->dispatcher->dispatch($action);
    }

    //put your code here
    public function createNewFileContent($fileID, $fileName, $filePath, $fileDescID, $fileCreateDate) {
        return $this->dispatcher->createNewFileContent($fileID, $fileName, $filePath, $fileDescID, $fileCreateDate);
    }

    public function deleteFileContentByID($fileID) {
        return $this->dispatcher->deleteFileContentByID($fileID);
    }

    public function getAllFileContentByDescID($descID) {
        return $this->dispatcher->getAllFileContentByDescID($descID);
    }

    public function getFileContentByID($fileID) {
        return $this->dispatcher->getFileContentByID($fileID);
    }

    public function updateFileContent($fileTO) {
        return $this->dispatcher->updateFileContent($fileTO);
    }

    public function deleteAllFileTemp() {
        return $this->dispatcher->deleteAllFileTemp();
    }

    public function getFileByDescID($descID) {
        return $this->dispatcher->getFileByDescID($descID);
    }

}
